package com.yjj.demo.jpa;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.NotBlank;

/**
 *
 *
 * @author yangjiajia
 * @time 2021/9/24 23:14
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public String test() {
        return "success";
    }

    @GetMapping("/test1")
    public String test1(@NotBlank String name) {
        return "success" + name;
    }
}
